/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package jnetmonitor.models;

import java.util.ArrayList;
import javax.swing.DefaultComboBoxModel;
import jpcap.NetworkInterface;

/**
 *
 * @author r1nlx0
 */
public class InterfaceComboBoxModel extends DefaultComboBoxModel {
    
    public InterfaceComboBoxModel (ArrayList<NetworkInterface> interfaces){
        for(NetworkInterface iface : interfaces){
            this.addElement(iface.name);
        }
    }
    
    
    
}
